import { handleUrlParams } from "../../utils/utils"
import store from "../../utils/store";

Component({
	properties: {},
	data: {
		showContractKefuBtn: false,
	},
	ready() {
		this.setData({
			showContractKefuBtn: store.showContractKefuBtn.get(),
		})
	},
	methods: {
		// 跳转到联系客服页面
		goToContractKefu() {
			wx.navigateTo({
				url: handleUrlParams("/pages/picture/index", {
					srcList: encodeURIComponent(
						JSON.stringify([
							"https://xwx.gzzmedu.com/pic/mM3Ju7L8bVmp2WTA5s8w.png",
						]),
					),
					pageTitle: "联系客服",
				}),
			})
		},
	},
})
